/*
 * Copyright 2005-2010 the original author or authors.
 * 
 *      ruixun
 *
 * Project csmp
 */
package com.csmp.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.bs.bean.Role;

/**
 * @author lizhiqiang
 * @version 2011-2-22
 * @since JDK 1.5
 */
public abstract class AbstractRoleService extends
		HibernateDaoSupport implements RoleService {

	protected abstract void delObj(Role entity);

	protected abstract void saveObj(Role entity);

	protected abstract Role loadObj(Serializable id);

	protected abstract List<Role> searchList(Role entity,int first,int max);

	public void del(Role entity) {
		delObj(entity);
	}

	public void save(Role entity) {
		saveObj(entity);
	}

	public List<Role> search(Role entity,int first,int max) {
		return searchList(entity,first,max);
	}

	public Role load(Serializable id) {
		return (Role) loadObj(id);
	}

}
